By now you should've the selected starter-kit on your local machine. If not, please go back to the Getting Started section and follow the instructions.
Start a local server
Since all starter-kits on veloz uses it own separate docker container, Make sure you have
Docker
installed on your machine before proceeding further.
📝 Configuring environment variables
- Rename
.env.example
to.env
and update the values with your own credentials.
By default, the starter-kit uses
Mongodb
as the database. You can aswell switch to other databases likePostgres
orMySQL
by updating theDATABASE_URL
in the.env
file. Follow this instructions
- Initialize docker container
_10# make sure you are in the root directory of the starter-kit_10# run the following command to initialize the docker container_10docker-compose up -d_10_10# if you want to stop the container, run the following command_10docker-compose down
- Start the local server
_10# make sure you are in the root directory of the starter-kit_10# run the following command to start the local server_10_10# yarn_10yarn dev_10_10# npm_10npm run dev
Your local server should be up and running on
http://localhost:4000
Visit http://localhost:4000 (opens in a new tab) to see your app.
🎉 Congratulations! You have successfully started your local server.
📝 Next steps
Let setup authentication for your app. Head over to the Authentication section to learn more.
Zeus uses Nextauth (opens in a new tab) for authentication.
By default Zeus comes with 2 built-in ways to authenticate users: OAuth and Email & Password