Thanks to visit codestin.com
Credit goes to github.com

Skip to content

slashauth/next-postgres-starter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Next Postgres Starter

This is a simple starter next app that talks to a local postgres database.

This runs within docker-compose. Make sure you have both docker and docker-compose installed. See Installing Docker.

docker-compose will likely be installed with the above steps but if not, check Installing Docker Compose.

Running

To run, simply execute docker-compose up. This will create your environment and you can access the next app at http://localhost:3000.

Starting from scratch

If you'd like to delete your work in the DB, you can run make clean. NOTE: This will delete everything in the database and will require you to run your migrations and create data again. use with caution!

Migrations

Creating a new migration

You can find the commands for using sequelize migrations. Ensure you run this command from within the nextjs folder.

Running migrations (up)

From the base folder, run make migrate

Running migrations (down)

From the base folder, run make migrate/down

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors